package com.wewins.fota.bean.bo.cond;

import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@Builder
public class StringListCond extends StringCond {
    private List<String> imeiList;

    @Override
    public boolean check(String t) {
        return this.imeiList.size() == 0 || this.imeiList.stream().anyMatch(item -> item.trim().equals(t));
    }
}
